﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpertList.aspx.cs" Inherits="ExpertMIS.Manage.ExpertList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link rel="Stylesheet" href="css/innerPage.css" />
    <title>专家列表</title>

    <script type="text/javascript">
    function showExpert(o)
    {
        var row = o.parentNode.parentNode;
        alert(row);
        var oid = row.cells[0].innerText;
        var url = "ExpertView.aspx?oid=" + oid ;
        window.parent.frames["mainFrame"].location.href = url;
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="title">
        <span>专家管理</span>
    </div>
    <div class="operation">
        <span>查询</span> <span>姓名</span><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        &nbsp;<span>行业</span>
        <asp:DropDownList ID="DropDownList1" runat="server">
        </asp:DropDownList>
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </div>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="20" CellPadding="0"
        GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
        AutoGenerateColumns="False" BorderStyle="None" BorderWidth="0px" Width="100%">
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <RowStyle CssClass="gridRow" Height="20px" />
        <Columns>
            <asp:BoundField DataField="F_OID" HeaderText="编号">
                <FooterStyle CssClass="hidden" />
                <HeaderStyle CssClass="hidden" />
                <ItemStyle CssClass="hidden" />
            </asp:BoundField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="CheckAll" type="checkbox" style="cursor: hand" onclick="SelectAllItemsID(this)" />
                </HeaderTemplate>
                <ItemTemplate>
                    <input id="CheckBox" runat="server" type="checkbox" onclick="SelectItemID(this)" />
                </ItemTemplate>
                <ItemStyle Width="2px" />
            </asp:TemplateField>
            <asp:BoundField DataField="domain" HeaderText="行业"></asp:BoundField>
            <asp:BoundField DataField="F_Name" HeaderText="姓名"></asp:BoundField>
            <asp:BoundField DataField="F_Gender" HeaderText="性别"></asp:BoundField>
            <asp:BoundField DataField="F_Phone" HeaderText="电话"></asp:BoundField>
            <asp:BoundField DataField="F_CellPhone" HeaderText="手机"></asp:BoundField>
            <asp:BoundField DataField="F_EMail" HeaderText="电子邮箱"></asp:BoundField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <span style="width: 60px; display: block; text-align: center; background-color: Transparent;">
                        操作</span>
                </HeaderTemplate>
                <ItemTemplate>
                    <a href="#" onclick="showExpert(this)">编辑</a> | <a href="#" onclick="showExpert(this)">
                        编辑</a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            <div class="pagerBody">
                <div class="pagerLeft">
                    <asp:Button runat="server" Text="删除" CssClass="button" />
                    <asp:Button runat="server" Text="审核" CssClass="button" />
                </div>
                <div class="pagerRight">
                    <asp:LinkButton ID="cmdFirstPage" runat="server" CommandName="Page" CommandArgument="First"
                        Enabled="<%# GridView1.PageIndex!=0 %>">首页</asp:LinkButton>
                    <asp:LinkButton ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page"
                        Enabled="<%# GridView1.PageIndex!=0 %>">前页</asp:LinkButton>
                    第<asp:Label ID="lblcurPage" runat="server" Text='<%# GridView1.PageIndex+1%>'></asp:Label>页/共<asp:Label
                        ID="lblPageCount" runat="server" Text='<%# GridView1.PageCount %>'></asp:Label>页
                    <asp:LinkButton ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next"
                        Enabled="<%# GridView1.PageIndex!=GridView1.PageCount-1 %>">后页</asp:LinkButton>
                    <asp:LinkButton ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                        Enabled="<%# GridView1.PageIndex!=GridView1.PageCount-1 %>">尾页</asp:LinkButton>
                    转<asp:TextBox ID="txtGoPage" runat="server" Text='<%# GridView1.PageIndex+1 %>' OnTextChanged="txtGoPage_TextChanged"
                        CssClass="inputmini"></asp:TextBox>页
                </div>
            </div>
        </PagerTemplate>
        <PagerStyle CssClass="pager" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle CssClass="gvHeader" />
        <AlternatingRowStyle BackColor="#DCDCDC" />
    </asp:GridView>
    </form>
</body>
</html>
